import http from '/src/utils/request'

export function getLikes(current,size,userId) {
  return http.get(`/plugins/baliServer-module-article/api/like?current=${current}&size=${size}&userId=${userId}`)
}

export function isLike(itemId) {
  return http.get(`/plugins/baliServer-module-article/api/like?current=1&size=1&targetId=${itemId}`)
}

export function doLike(body) {
  return http.post('/plugins/baliServer-module-article/api/like',body)
}

export function doUnlike(itemId) {
  return http.delete(`/plugins/baliServer-module-article/api/like/${itemId}`)
}
